//package com.qifenqian.turbot.deprecated.presenter
//
//import android.content.Context
//import com.qifenqian.turbot.base.BasePresenter
//import com.qifenqian.turbot.deprecated.contract.RegisterContract
//import com.qifenqian.turbot.module.entity.response.RegisterEntity
//import com.qifenqian.turbot.deprecated.model.RegisterModel
//import com.qifenqian.turbot.net.ModelCallback
//
///**
// * @author H
// * @createTime 2018/12/17 09:04
// * @description
// * @see
// * @since
// */
//@Deprecated("AccountPresenter")
//class RegisterPresenter(context: Context, view: RegisterContract.View) : BasePresenter<RegisterContract.View, RegisterModel>(context, view), RegisterContract.Presenter {
//
//    override fun sendSmsCode(type: Int) {
//        mModel.sendSmsCode(type, object : ModelCallback<Nothing> {
//            override fun onSuccess(msg: String?, t: Nothing?) {
//                mView!!.getCodeSuccess(t)
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
////                mView!!.showToast(code, msg)
//            }
//        })
//    }
//
//    override fun register(userCode: String, smsCode: String, password: String) {
//        mModel.register(userCode, smsCode, password, object : ModelCallback<RegisterEntity> {
//            override fun onSuccess(msg: String?, t: RegisterEntity?) {
//                mView!!.registerSuccess(t!!)
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
////                mView!!.showFailure(code, msg)
//            }
//        })
//    }
//
//    override fun createModel(): RegisterModel {
//        return RegisterModel(mContext)
//    }
//}
